﻿' LibWowArmory
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Imports System.Collections.ObjectModel

Namespace roncliProductions.LibWowArmory.Item.Info

    ''' <summary>
    ''' A class that encapsulates a random property
    ''' </summary>
    ''' <remarks></remarks>
    Public Class RandomProperty
        Private scEnchantments As Collection(Of String)

        ''' <summary>
        ''' The random enchantment's suffix
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Suffix As String

        ''' <summary>
        ''' An effect of the random enchantment
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public ReadOnly Property Enchantments As Collection(Of String)
            Get
                Return scEnchantments
            End Get
        End Property

        ''' <summary>
        ''' A constructor to create a new random property
        ''' </summary>
        ''' <param name="strSuffix"></param>
        ''' <param name="scEnchantments"></param>
        ''' <remarks></remarks>
        Public Sub New(ByVal strSuffix As String, ByVal scEnchantments As Collection(Of String))
            Suffix = strSuffix
            Me.scEnchantments = scEnchantments
        End Sub
    End Class

End Namespace
